package cn.zswltech.gruul.web.api.controller.common;

import cn.zswltech.gruul.api.EnumsApi;
import cn.zswltech.gruul.biz.service.EnumsService;
import cn.zswltech.gruul.common.dal.vo.EnumsVO;
import cn.zswltech.gruul.common.result.Response;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author pengfei.yu
 * @date 2024/2/27 17:58
 */
@RestController
public class EnumsController implements EnumsApi {

    @Resource
    private EnumsService enumsService;

    @Override
    public Response<Map<String, List<EnumsVO>>> getEnums() {
        return enumsService.commonEnums();
    }
}
